import com.cherry.aop.service.IAccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * 使用Junit单元测试：测试我们的配置
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:bean1.xml")
public class AccountServiceTest1 {

    @Resource(name = "proxyService")
    private IAccountService as;

    @Test
    public void testTransfer() {
        as.transfer("tom", "cherry", 100.0);
    }

}
